package com.heima.oopAdvanced.n01static.demo01;

public class StudentTest {
    public static void main(String[] args) {

        Student.teacherName = "阿玮老师";
        Student s1 = new Student();
        s1.setAge(18);
        s1.setName("同学1");
        s1.setGender("男");
        // s1.teacherName = "阿玮老师";

        s1.study();
        s1.show();

        Student s2 = new Student();
        s2.setAge(17);
        s2.setName("同学2");
        s2.setGender("女");

        s2.study();
        s2.show();
    }
}
